home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Snippets / Toolbox / OtherResInfo-MungeDeamon / Common.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-22  |  999 b   |  39 lines  |  [TEXT/MPS ]

  1. /* common data types and defs for both applications */
  2.  
  3. /* structure for passing around resource information */
  4. typedef struct myResInfoStruct{
  5. short id;
  6. ResType theType;
  7. unsigned long length;
  8. Str255 theName;
  9.  
  10. }myResInfoStruct;
  11. typedef myResInfoStruct *myResInfoPtr,**myResInfoHdl;
  12. /* a little struct to install handlers from.  Makes it easier to plug in */
  13. /* new handlers */
  14. struct AEinstalls {
  15.     AEEventClass theClass;
  16.     AEEventID theEvent;
  17.     EventHandlerProcPtr theProc;
  18. };
  19. typedef struct AEinstalls AEinstalls;
  20.  
  21.  
  22. #define kMungeDeamonCreator 'MUNG'
  23. #define kMyEventClass 'MUNG'
  24. #define kMyTypeOfData 'MAVT'
  25. #define kGetResEvent 'FRIT'
  26. #define kGetResInfoEvent 'FRFS'
  27. #define keyMyQuitFlag 'MYQT'
  28. #define kTypeDesired '?TYP'
  29. #define kMyResTypeParam 'RTYP'
  30. #define typeMyResType 'RTYP'
  31.  
  32. #define typeMyResInfoType    'RESI'
  33.  
  34.  
  35. enum {kAppleEventTooBig = 7080,kListGrewTooBig};
  36.  
  37. /* one external */
  38. extern void _DataInit();                                    /* this is the C initialization code */
  39.